// 剖析 events 模块

// 在 events 模块中 通过 module.exports 导出的就是一个 对象(class-level)
const EventEmitter = require('events');

let names = Object.getOwnPropertyNames(EventEmitter);

names.forEach(name => {
    console.log(name);
});

console.log('- - - - - - - - - - - - - - - - - - - - -');

names = Object.getOwnPropertyNames(EventEmitter.prototype);

names.forEach(name => {
    console.log(name);
});